<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<div class="title_page">
<h2><!--{$tpl_subtitle}-->マスターデータ管理</h2>
</div>



<h3><form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
	<input type="hidden" name="mode" value="show">
	<select name="master_data_name" id="master_data_name">
	<!--{html_options output=$arrMasterDataName values=$arrMasterDataName selected=$masterDataName}-->
	</select>
		<input type="submit" value="選択">
	</form>
</h3>



<!--{if $smarty.post.mode == 'show'}-->
	<ul class="red small">
	<li>マスタデータの値を設定できます。</li>
	<li>重複したIDを登録することはできません。</li>
	<li>空のIDを登録すると、値は削除されます。</li>
	<li>設定値によってはサイトが機能しなくなる場合もありますので、十分ご注意下さい。</li>
	</ul>


<div class="menuclass">
<table summary="マスターデータ管理">
<form name="form2" id="form2" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="master_data_name" value="<!--{$masterDataName}-->">

		<!--{if $errorMessage != ""}-->
		<tr>
		<td align="left" colspan="2">
		<span class="red"><!--{$errorMessage}--></span>
		</td>
		</tr>
		<!--{/if}-->
								
			<!--{foreach from=$arrMasterData item=val key=key}-->
			<tr>
			<td align="left">
			ID：<input type="text" name="id[]" value="<!--{$key|escape}-->" size="6"><br />
			<!--{$key|escape}-->
			</td>
			<td align="left">
			値：<input type="text" name="name[]" value="<!--{$val|escape}-->" style="" size="60" class="box60" />
			</td>
			</tr>
			<!--{/foreach}-->

				<tr>
				<td bgcolor="#f2f1ec" align="center" colspan="2">追加のデータ</td>
				</tr>
				<tr>
				<td align="left">
				ID：<input type="text" name="id[]" size="6">
				</td>
				<td align="left">
				値：<input type="text" name="name[]" style="" size="60" class="box60" />
				</td>
				</tr>
</form>
</table>
</div>



<div class="btn_box">
<input onClick="return document.form2.submit()" type="submit" value="この内容で登録する" name="subm" />
</div>
<!--{/if}-->


</form>
</div>
</div>
